* asmtest3.asm, demonstrating digital sensor input        org $8000start   lds #$ffff        again        ldaa #$f0         staa $7000                jsr waitforpress        ; wait until Start button pressed                ldaa #$ff         staa $7000                jsr waitforpress                bra again waitforpress        ldaa $7000      ; load A with value of digital input latch        anda #$80       ; mask off all but upper bit = Start button        bne waitforpress ; loop until pressed        ldx #0    delaylp dex        bne delaylp                rts                       org $bffe         fdb start                 end